import request from "@/utils/request";

//种猪列表
export function boarList(data) {
  return request({
    url: "/produce/boar/list",
    method: "post",
    data,
  });
}

//进场
export function boarEntry(data) {
  return request({
    url: "/produce/boar/boarEntry",
    method: "post",
    data,
  });
}

//转舍
export function boarMoveBuildings(data) {
  return request({
    url: "/produce/boar/boarMoveBuildings",
    method: "post",
    data,
  });
}

//离场
export function boarLeave(data) {
  return request({
    url: "/produce/boar/boarLeave",
    method: "post",
    data,
  });
}

//删除
export function boarDelete(id) {
  return request({
    url: `/produce/boar/boarDelete/${id}`,
    method: "delete",
  });
}
